package com.zhouyu.service;

import com.zhouyu.domain.User;

import java.beans.PropertyEditorSupport;

public class StringToUserEditor extends PropertyEditorSupport {

	@Override
	public void setAsText(String text) throws IllegalArgumentException {
		User user = new User(text);
		this.setValue(user);
	}
}